{% extends 'layout.html' %}

{# Set variables for base layour #}
{% set active_page = 'user' %}
{% set title = '' %}

{% block content %}

    <div class="user_activity">

        {% for comment in comments %}
            
            <div>
                {{ comment.text|md2html|safe }}
                
                {# Post info #}
                <div class="info">
                    <a href="../post/{{ comment.postHashId }}#comment-{{ comment.hashId }}">read</a>
                    —
                    <time title="{{ comment.created|title }}" datetime="{{ comment.created|datetime }}"><em> {{ comment.created|ago }} </em></time> on <a href="../post/{{ comment.postHashId }}">{{ comment.postTitle }}</a>
                </div>
            </div>
            
        {% endfor %}

    </div>
        
{% endblock %}
